package top.tagao.m01_structuralPatterns.s_06_decorator;

/**
 *(Component)
 * @author fu-xiao-liu
 * @Date 2022/8/1 23:44
 */
public abstract class Drink {

    // 描述
    public String des;
    private float price = 0.0f;

    public String getDes() {
        return des;
    }
    public void setDes(String des) {
        this.des = des;
    }
    public float getPrice() {
        return price;
    }
    public void setPrice(float price) {
        this.price = price;
    }

    //计算费用的抽象方法
    //子类来实现
    public abstract float cost();
}
